package com.ruoyi.ams.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.ams.domain.AmsAssetInventoryDetail;
import com.ruoyi.ams.mapper.AmsAssetInventoryDetailMapper;
import com.ruoyi.ams.service.IAmsAssetInventoryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 盘点明细Service业务层处理
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Service
public class AmsAssetInventoryDetailServiceImpl extends ServiceImpl<AmsAssetInventoryDetailMapper, AmsAssetInventoryDetail>  implements IAmsAssetInventoryDetailService
{
    @Autowired
    private AmsAssetInventoryDetailMapper amsAssetInventoryDetailMapper;

    /**
     * 查询盘点明细
     * 
     * @param inventoryDetailId 盘点明细主键
     * @return 盘点明细
     */
    @Override
    public AmsAssetInventoryDetail selectAmsAssetInventoryDetailByInventoryDetailId(Long inventoryDetailId)
    {
        return amsAssetInventoryDetailMapper.selectAmsAssetInventoryDetailByInventoryDetailId(inventoryDetailId);
    }

    /**
     * 查询盘点明细列表
     * 
     * @param amsAssetInventoryDetail 盘点明细
     * @return 盘点明细
     */
    @Override
    public List<AmsAssetInventoryDetail> selectAmsAssetInventoryDetailList(AmsAssetInventoryDetail amsAssetInventoryDetail)
    {
        return amsAssetInventoryDetailMapper.selectAmsAssetInventoryDetailList(amsAssetInventoryDetail);
    }

    /**
     * 新增盘点明细
     * 
     * @param amsAssetInventoryDetail 盘点明细
     * @return 结果
     */
    @Override
    public int insertAmsAssetInventoryDetail(AmsAssetInventoryDetail amsAssetInventoryDetail)
    {
        return amsAssetInventoryDetailMapper.insertAmsAssetInventoryDetail(amsAssetInventoryDetail);
    }

    /**
     * 修改盘点明细
     * 
     * @param amsAssetInventoryDetail 盘点明细
     * @return 结果
     */
    @Override
    public int updateAmsAssetInventoryDetail(AmsAssetInventoryDetail amsAssetInventoryDetail)
    {
        return amsAssetInventoryDetailMapper.updateAmsAssetInventoryDetail(amsAssetInventoryDetail);
    }

    /**
     * 批量删除盘点明细
     * 
     * @param inventoryDetailIds 需要删除的盘点明细主键
     * @return 结果
     */
    @Override
    public int deleteAmsAssetInventoryDetailByInventoryDetailIds(Long[] inventoryDetailIds)
    {
        return amsAssetInventoryDetailMapper.deleteAmsAssetInventoryDetailByInventoryDetailIds(inventoryDetailIds);
    }

    /**
     * 删除盘点明细信息
     * 
     * @param inventoryDetailId 盘点明细主键
     * @return 结果
     */
    @Override
    public int deleteAmsAssetInventoryDetailByInventoryDetailId(Long inventoryDetailId)
    {
        return amsAssetInventoryDetailMapper.deleteAmsAssetInventoryDetailByInventoryDetailId(inventoryDetailId);
    }
}
